package src.week4.实践;

public class Test {
    public static void main(String[] args) {
       LinkedUnoderedList list = new LinkedUnoderedList();
       Product product = new Product("book2",20);
       Product product1 = new Product("book1",20);
       Product product2 = new Product("book4",20);
       list.addToFront(product);
       list.addToFront(product1);
       list.addToFront(product2);
        System.out.println(list.toString());
        System.out.println("删除后");
        list.remove(product1);
        System.out.println(list.toString());

        System.out.println("查找："+list.Find(product1));
        System.out.println("排序：");
        list.selectSorting();
        System.out.println(list.toString());

    }
}
